package com.hopes.bizz.risk.job;

import com.hopes.bizz.common.core.annotation.TenantJobRun;
import com.hopes.bizz.risk.control.service.RiskOperationalEvaluationService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/8/11 14:28
 * @Description:
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class RiskOperationEffectStatisticsService {

    private final RiskOperationalEvaluationService riskOperationalEvaluationService;


    @XxlJob("riskOperationEffectStatisticsJobHandler")
    @TenantJobRun
    public void riskOperationEffectStatisticsJobHandler() {
        riskOperationalEvaluationService.saveCalculateStatistics();
    }
}
